#!/bin/bash # It is recommended to test the script on a local machine for its purpose and effects. # ManageEngine Desktop Central will not be responsible for any # damage/loss to the data/setup based on the behavior of the script. # Description - Set Wallpaper, make sure the image name is given also as a script argument # Dependency file - "" and Set_wallpaper.zip # Parameter - "" (Should be the exact name with extension as in dependency file) # Configuration - USER # Frequency - every Every logon or During subsequent logon # Note - a process "Set_wallpaper" will be running in background #extract set_wallpaper zip /usr/bin/unzip -u Set_wallpaper.zip /bin/chmod +x Set_wallpaper if [ $# == '1' ]; then echo "$1" mkdir ~/Pictures/MEDC cp ./"$1" ~/Pictures/MEDC/"$1" path="$HOME/Pictures/MEDC/$1" echo "$path" ./Set_wallpaper $path >/dev/null 2>&1 & disown echo "Wallpaper set successfully " exit 0 else echo "Invalid Arguments - Please refer description of the script" exit 1 fi